package com.ruoyi.teachingclass.service.impl;

import java.util.List;

import com.ruoyi.teachingclass.domain.StudentVO;
import com.ruoyi.teachingclass.domain.TeachingClassVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.teachingclass.mapper.TeachingclassMapper;
import com.ruoyi.teachingclass.domain.Teachingclass;
import com.ruoyi.teachingclass.service.ITeachingclassService;

/**
 * 教学班信息Service业务层处理
 *
 * @author LinBei
 * @date 2025-05-16
 */
@Service
public class TeachingclassServiceImpl implements ITeachingclassService
{
    @Autowired
    private TeachingclassMapper teachingclassMapper;

    /**
     * 查询教学班信息
     *
     * @param classId 教学班信息主键
     * @return 教学班信息
     */
    @Override
    public Teachingclass selectTeachingclassByClassId(Long classId)
    {
        return teachingclassMapper.selectTeachingclassByClassId(classId);
    }

    /**
     * 查询教学班信息列表
     *
     * @param teachingclass 教学班信息
     * @return 教学班信息
     */
    @Override
    public List<Teachingclass> selectTeachingclassList(Teachingclass teachingclass)
    {
        return teachingclassMapper.selectTeachingclassList(teachingclass);
    }

    /**
     * 新增教学班信息
     *
     * @param teachingclass 教学班信息
     * @return 结果
     */
    @Override
    public int insertTeachingclass(Teachingclass teachingclass)
    {
        return teachingclassMapper.insertTeachingclass(teachingclass);
    }

    /**
     * 修改教学班信息
     *
     * @param teachingclass 教学班信息
     * @return 结果
     */
    @Override
    public int updateTeachingclass(Teachingclass teachingclass)
    {
        return teachingclassMapper.updateTeachingclass(teachingclass);
    }

    /**
     * 批量删除教学班信息
     *
     * @param classIds 需要删除的教学班信息主键
     * @return 结果
     */
    @Override
    public int deleteTeachingclassByClassIds(Long[] classIds)
    {
        return teachingclassMapper.deleteTeachingclassByClassIds(classIds);
    }

    /**
     * 删除教学班信息信息
     *
     * @param classId 教学班信息主键
     * @return 结果
     */
    @Override
    public int deleteTeachingclassByClassId(Long classId)
    {
        return teachingclassMapper.deleteTeachingclassByClassId(classId);
    }

    @Override
    public List<Teachingclass> selectTeachingclassList_handteacher(String teacherId) {
        return teachingclassMapper.selectTeachingclassList_handteacher(teacherId);
    }

    @Override
    public List<Teachingclass> selectTeachingclassList_Xiteacher(String teacherId) {
        return teachingclassMapper.selectTeachingclassList_Xiteacher(teacherId);
    }

    @Override
    public List<Teachingclass> selectTeachingclassList_teacher(String teacherId) {
        return teachingclassMapper.selectTeachingclassList_teacher(teacherId);
    }


    @Override
    public List<TeachingClassVO> getClassesByTeacher(String teacherId) {
        return teachingclassMapper.selectByTeacherId(teacherId);
    }


    @Override
    public List<StudentVO> getClassStudents(Integer classId) {
        return teachingclassMapper.selectStudentsByClassId(classId);
    }


}
